package com.fjnldx.mes.domain.domainReq;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.PastOrPresent;
import java.time.LocalDate;

@Data
public class QuerySalaryReport {
    @NotBlank(message = "工序不能为空")
    private String gongxu;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @PastOrPresent(message = "必须是过去的一个时间")
    private LocalDate time;
    @Min(value = 1,message = "页码需要大等于1")
    private int page;
    @Min(value = 0,message = "页数需要大等于0")
    private int size;
    private String cj;
    private String bc;
    private String pz;
}
